package cn.ilovese.collect.vo.recommend;

import cn.ilovese.collect.po.recommend.RecommendRule;
import lombok.NonNull;

public class RecommendRuleHaveNameVO {
    private Integer id;

    private String name;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public RecommendRuleHaveNameVO(@NonNull RecommendRule recommendRule){
        id = recommendRule.getId();
        name=recommendRule.getName();
    }
    public RecommendRuleHaveNameVO(){

    }
}
